<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html>
 <head>
    <title>采购入库详情表</title>
    <!-- import css and js -->
	<%@ include file="/common/meta.jsp" %>
	<script src="${ctx}/js/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript">
		var basic_Url="${ctx}/logic/Reports";
		var grid;
		$(function(){
				grid = $("#table1").ligerGrid({
		        columns: [{ display: '采购id', name: 'zd001MarkId', hide: true},
		                { display: '采购编号', name: 'zd001MarkCode', width: 100 },
		                { display: '采购部门code', name: 'zd001DeptCode', hide: true },
		                { display: '采购部门', name: 'zd001DeptName',width: 100 },
		                { display: 'pi编号', name: 'zd001PiCode', width: 100 },
 						{ display: '物料id', name: 'zd003MaterId', hide: true},
 						{ display: '物料编码', name: 'zd003MaterCode', width: 100 },
 						{ display: '物料名称', name: 'zd003MaterName', width: 120 },
 						{ display: '物料型号', name: 'zd003MaterMode', width: 120 },
 						{ display: '物料规格', name: 'zd003MaterSpec', width: 120 },
 						{ display: '物料颜色', name: 'zd003MaterColor', width: 120 },
 						{ display: '物料材质', name: 'zd003MaterQuanlity', width: 120 },
 						{ display: '单位', name: 'zd003MaterUnit', width: 80 },
 						{ display: '单价', name: 'zd003MaterPrice', width: 100 },
 						{ display: '数量', name: 'zd003MaterQuantity', width: 120 },
 						{ display: '金额', name: 'zd003SumMoney', width: 140 },
 						{ display: '供料单位id', name: 'zd002SuperId', hide : true },
 						{ display: '供料Code', name: 'zd002SuperCode', hide : true },
 						{ display: '供料单位', name: 'zd002SuperName', width: 180 },
 						{ display: '入库日期', name: 'zd004MarkDate', width: 120 },
 						{ display: '审核人code', name: 'zd004AuditUserCode', hide : true},
 						{ display: '审核人', name: 'zd004AuditUserName', width: 120},
 						{ display: '备注', name: 'zd003Remark', width: 180 }
		                      ],  usePager: true,pageSize:30,
		                      params:{},
		                      url : basic_Url+"/clerklist.do",
		                      width: "100%", height:"98%", checkbox: false
		                  });
			$("#pageloading").hide();
		});
		
		function getSelected(){
			var rows = grid.getCheckedRows();
			 return rows;
		}
		
		function Close(){
			CloseDialog();
		}
		//按回车 ，查询
		document.onkeydown=keyListener;   
		function keyListener(e){   
		    e = e ? e : event;  
		    if(e.keyCode == 13){   
		    	searchAP();
		    }   
		}  
	</script>
  </head>
 <body style="padding:10px">  
	<div id="layout1">
	   <div id="pageHeader" class="pageHeader">
	        <div class="searchBar" id="multipleSearchDialog">
	          <table class="table" width="100%" id="searchHeader" >  
	                 <tbody id="newbody">
	                 </tbody>
	           </table>
	             <!-- <div class="subBar">
		         <ul>
		          <li><div class="buttonActive">
		          		<div class="buttonContent">
		          			<button type="submit" id="btnSearch" onclick="searchAP()">查询</button>
		          		</div>
		          </div></li>
		          <li><a class="button" onclick="clearSearch()"><span>重置</span></a></li>
		          </ul>
	           	</div> -->
	         </div>
	    </div>
	</div>
    <div position="center" id="table1">
    </div>
    <div class="clear"></div>
  </body>
</html>